  /**
   * Generate time : 2016-05-09 9:24:37
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.ci.domain;

import com.baosight.iplat4j.util.NumberUtils;
import java.math.BigDecimal;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCIRiskInfo 
 * table comment : 隐患信息表 
 */
public class ZMCIRiskInfo extends DaoEPBase {

	private String fdKeyId = " ";		/* 主键*/
	private String fdName = " ";		/* 矿井名称*/
	private String fdDepartment=" ";    /*部门*/
	private String fdRiskType = " ";		/* 隐患分类*/
	private String fdRiskLevel = " ";		/* 隐患级别*/
	private String fdRiskStatus = " ";		/* 隐患状态*/
	private BigDecimal fdRiskNum = new BigDecimal("0");		/* 隐患数量*/
	private String fdVirtualDate = " ";		/* 调度日期*/
	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("主键");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdName");
	eiColumn.setFieldLength(60);	
	eiColumn.setDescName("矿井名称");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDepartment");
	eiColumn.setFieldLength(100);	
	eiColumn.setDescName("部门名称");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdRiskType");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("隐患分类");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdRiskLevel");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("隐患级别");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdRiskStatus");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("隐患状态");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdRiskNum");
	eiColumn.setType("N");
	eiColumn.setScaleLength(0);
	eiColumn.setFieldLength(10);
	eiColumn.setDescName("隐患数量");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdVirtualDate");
	eiColumn.setFieldLength(10);	
	eiColumn.setDescName("调度日期");
	eiMetadata.addMeta(eiColumn);
	

	}
	/**
	 * the constructor
	 */
	public ZMCIRiskInfo() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId - 主键
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId - 主键
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	/**
	 * get the fdName - 矿井名称
	 * @return the fdName
	 */
	public String getFdName() {
		return this.fdName;
	}
	
	/**
	 * set the fdName - 矿井名称
	 */
	public void setFdName(String fdName) {
		this.fdName = fdName;
	}
	
	/**
	 * get the fdDepartment - 部门名称
	 * @return the fdDepartment
	 */
	public String getFdDepartment() {
		return this.fdDepartment;
	}
	
	/**
	 * set the fdDepartment - 部门名称
	 */
	public void setFdDepartment(String fdDepartment) {
		this.fdDepartment = fdDepartment;
	}
	
	/**
	 * get the fdRiskType - 隐患分类
	 * @return the fdRiskType
	 */
	public String getFdRiskType() {
		return this.fdRiskType;
	}
	
	/**
	 * set the fdRiskType - 隐患分类
	 */
	public void setFdRiskType(String fdRiskType) {
		this.fdRiskType = fdRiskType;
	}
	/**
	 * get the fdRiskLevel - 隐患级别
	 * @return the fdRiskLevel
	 */
	public String getFdRiskLevel() {
		return this.fdRiskLevel;
	}
	
	/**
	 * set the fdRiskLevel - 隐患级别
	 */
	public void setFdRiskLevel(String fdRiskLevel) {
		this.fdRiskLevel = fdRiskLevel;
	}
	/**
	 * get the fdRiskStatus - 隐患状态
	 * @return the fdRiskStatus
	 */
	public String getFdRiskStatus() {
		return this.fdRiskStatus;
	}
	
	/**
	 * set the fdRiskStatus - 隐患状态
	 */
	public void setFdRiskStatus(String fdRiskStatus) {
		this.fdRiskStatus = fdRiskStatus;
	}
	/**
	 * get the fdRiskNum - 隐患数量
	 * @return the fdRiskNum
	 */
	public BigDecimal getFdRiskNum() {
		return this.fdRiskNum;
	}
	
	/**
	 * set the fdRiskNum - 隐患数量
	 */
	public void setFdRiskNum(BigDecimal fdRiskNum) {
		this.fdRiskNum = fdRiskNum;
	}
	/**
	 * get the fdVirtualDate - 调度日期
	 * @return the fdVirtualDate
	 */
	public String getFdVirtualDate() {
		return this.fdVirtualDate;
	}
	
	/**
	 * set the fdVirtualDate - 调度日期
	 */
	public void setFdVirtualDate(String fdVirtualDate) {
		this.fdVirtualDate = fdVirtualDate;
	}
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdName")), fdName));
		setFdDepartment(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDepartment")), fdDepartment));
		setFdRiskType(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRiskType")), fdRiskType));
		setFdRiskLevel(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRiskLevel")), fdRiskLevel));
		setFdRiskStatus(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRiskStatus")), fdRiskStatus));
		setFdRiskNum(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdRiskNum")), fdRiskNum));
		setFdVirtualDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdVirtualDate")), fdVirtualDate));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdName",StringUtils.toString(fdName, eiMetadata.getMeta("fdName")));
			map.put("fdDepartment",StringUtils.toString(fdDepartment, eiMetadata.getMeta("fdDepartment")));
			map.put("fdRiskType",StringUtils.toString(fdRiskType, eiMetadata.getMeta("fdRiskType")));	
			map.put("fdRiskLevel",StringUtils.toString(fdRiskLevel, eiMetadata.getMeta("fdRiskLevel")));	
			map.put("fdRiskStatus",StringUtils.toString(fdRiskStatus, eiMetadata.getMeta("fdRiskStatus")));	
			map.put("fdRiskNum",StringUtils.toString(fdRiskNum, eiMetadata.getMeta("fdRiskNum")));	
			map.put("fdVirtualDate",StringUtils.toString(fdVirtualDate, eiMetadata.getMeta("fdVirtualDate")));	
			
		return map;
	
	}
}